package com.lnking.lnkingplace.model.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.lnking.starter.mybatis.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.Valid;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhangqt
 * @since 2022-09-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="PlaceProblem对象", description="")
public class PlaceProblem extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "场所id")
    private String placeId;

    @ApiModelProperty(value = "发现问题")
    private String problem;

    @ApiModelProperty(value = "整改措施")
    private String measure;

    @ApiModelProperty(value = "责任单位")
    private String responsibleDepartment;

    @ApiModelProperty(value = "责任人")
    private String responsiblePerson;

    @ApiModelProperty(value = "联系方式")
    private String phone;

    @ApiModelProperty(value = "整改时限")
    private String duration;

    @ApiModelProperty(value = "整改结果")
    private String result;

    @ApiModelProperty(value = "删除标识")
    @JsonIgnore
    private Boolean delFlag;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "发现问题时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate problemDiscoveryDate;

    @ApiModelProperty(value = "督导类型（上级督查、新区督导、专班自查）")
    private String examineType;
}
